package net.sxnic.jhitem.itemannex;

import net.sxinfo.core.entity.AbstractEntity;
import javax.persistence.*;

import org.hibernate.annotations.BatchSize;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.hibernate.annotations.Cascade;

import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

import java.util.Date;
import java.util.HashMap;
import java.util.LinkedHashSet;
import java.util.Map;
import java.util.Set;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Lob;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.OneToOne;
import javax.persistence.Table;


@Entity
@Table(name = "jh_item_annex")
@BatchSize(size = 10)
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class ItemAnnex extends AbstractEntity {
	
	private static final long serialVersionUID = 1L;
	

	//columns START
	// 附件名称
	private String attachName;
	// 附件描述
	private String description;
	// 文件名称(存放在服务器上的文件名，自定义)
	private String fileName;
	// 文件路径
	private String filePath;
	// 文件类别
	private String fileSort;
	// 文件类型
	private String fileType;
	// 文件大小
	private String fileSize;
	// 附件排序
	private int attachOrder;
	// 与主表关联
	@Column(length=50)
	private String baseinfoId;
	//columns END

	
	public ItemAnnex()
	{
		super();
	}
	
	public String getAttachName() {
		return this.attachName;
	}
	
	public void setAttachName(String value) {
		this.attachName = value;
	}
	
	public String getDescription() {
		return this.description;
	}
	
	public void setDescription(String value) {
		this.description = value;
	}
	
	public String getFileName() {
		return this.fileName;
	}
	
	public void setFileName(String value) {
		this.fileName = value;
	}
	
	public String getFilePath() {
		return this.filePath;
	}
	
	public void setFilePath(String value) {
		this.filePath = value;
	}
	
	public String getFileSort() {
		return this.fileSort;
	}
	
	public void setFileSort(String value) {
		this.fileSort = value;
	}
	
	public String getFileType() {
		return this.fileType;
	}
	
	public void setFileType(String value) {
		this.fileType = value;
	}
	
	public String getFileSize() {
		return this.fileSize;
	}
	
	public void setFileSize(String value) {
		this.fileSize = value;
	}
	
	public int getAttachOrder() {
		return this.attachOrder;
	}
	
	public void setAttachOrder(int value) {
		this.attachOrder = value;
	}
	
	public String getBaseinfoId() {
		return this.baseinfoId;
	}
	
	public void setBaseinfoId(String value) {
		this.baseinfoId = value;
	}
	
}

